import { createApp } from 'vue'
import App from '@/App.vue'
import router from '@/router';
import 'element-plus/es/components/message/style/css'
import {createPinia} from 'pinia'
import piniaPluginPersist from 'pinia-plugin-persistedstate'

const app = createApp(App)
const pinia = createPinia()
// 使用pinia
app.use(pinia)
// 使用路由
app.use(router)

// 注册并配置插件  
pinia.use(piniaPluginPersist)

// 将应用挂载到#app上
app.mount("#app")


